package operation;

import book.Book;
import book.BookLIst;

public class ExitBook implements Ioperation{
    public void work(BookLIst books){
        System.out.println("退出系统");
        int currentSize = books.getUsedSize();
        for(int i = 0; i < currentSize; i++){
            Book book = books.getBook(i);
            books.setBookList(i,null);
        }
        books.setUsedSize(0);
        System.exit(0);
    }
}
